package cn.jetpiece.cloud.system.dp.api.biz;

import cn.jetpiece.cloud.model.response.Result;
import cn.jetpiece.cloud.resource.annotation.annotation.ScanResource;
import cn.jetpiece.cloud.system.dp.api.biz.model.params.OpenApiParam;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMethod;

import javax.validation.Valid;

@Api(tags="envData_api")
public interface SyncDataApi {

    String API = "/datapipeline/synchApi";

    /**
     * 设备实时数据
     *
     * @param apiParam
     * @return 返回结果
     */
    @ApiOperation(value = "设备实时数据")
        @ScanResource(name = "设备实时数据", path = API + "/dust/envData", method = RequestMethod.POST)
    Result<String> getEnvData(@RequestBody @Valid OpenApiParam apiParam);

    @ApiOperation(value = "设备实时国标数据")
    @ScanResource(name = "设备实时国标数据", path = API + "/dust/envOrgData", method = RequestMethod.POST)
    Result<String> getEnvOrgData(@RequestBody @Valid OpenApiParam apiParam);
}